<template>
	<view>
		<zy-grid :grid-list=gridList :show-tip="true" :col="3"></zy-grid>
	</view>
</template>

<script>
	import zyGrid from '../../components/zy-grid/zy-grid.vue'
	export default {
		components:{
			zyGrid
		},
		data () {
			return {
				gridList:[	{
				 		name: '人员列表',
						openType:'navigate',
						routerPath: '../personnel/personnel',
						imgUrl: '../../static/zy-grid/personnel_list.png'
					},{
						name:'打 卡',
						openType:'switchTab',
						routerPath:'../signUp/signUp',
						imgUrl: '../../static/zy-grid/sign_up.png'
					},{
						name:'添加劳工',
						openType:'navigate',
						routerPath:'../addLabor/addLabor',
						imgUrl: '../../static/zy-grid/personnel_add.png'
					},{
						name:'班组管理',
						openType:'navigate',
						routerPath:'../management/management',
						imgUrl: '../../static/zy-grid/group_list.png'
					},{
						name:'创建班组',
						openType:'navigate',
						routerPath:'../addManage/addManage',
						imgUrl: '../../static/zy-grid/group_add.png'
					},
					],
					loginUser:{}
 
			}
		},
		created() {
			 
		},
		onLoad(option) {
			 this.loginUser = uni.getStorageSync('userInfo');
			 if(this.loginUser == ""){
			 	uni.reLaunch({
			 		url: "/pages/ucenter/login-page/pwd-login/pwd-login"
			 	});
			 }
			 
		},
		methods: {
		
		   }
	}
</script>

<style>
	
</style>
